package com.kuzlak.cms.module.sys.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kuzlak.cms.module.sys.entity.SysPermission;
import com.kuzlak.cms.module.sys.mapper.SysPermissionMapper;
import com.kuzlak.cms.module.sys.service.SysPermissionService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author hesenjan
* @description 针对表【sys_permission(权限表)】的数据库操作Service实现
* @createDate 2024-11-30 19:24:14
*/
@Service
public class SysPermissionServiceImpl extends ServiceImpl<SysPermissionMapper, SysPermission>
    implements SysPermissionService{

    @Override
    public List<SysPermission> batchGetPermissionsByPermissionIds(List<Long> permissionIdList) {
        LambdaQueryWrapper<SysPermission> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.in(SysPermission::getId,permissionIdList);
        return this.list(queryWrapper);

    }
}




